﻿<div id="innerContainer">
    @using (Html.BeginForm())
    {
    
        <span>bbb</span>
        <input name="inputA" value="ssssss" />
        <input type="submit" value="提交" />
    
    
    }
    <input type="submit" value="提交2" />
</div>
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/PlugIns/jquery.tools.min.js")" type="text/javascript"></script>
<input type="button" id="btnAjaxSubmit" value="ajax提交" />
<script type="text/javascript">
    $(document).ready(function () {
        var targetObject = {
            "isAjaxDeal": "true",
            "city": "qingdao",
            "nation": "china"
        };

        $("#btnAjaxSubmit").click(function () {
            $.post('@Url.Action("FormB", "OverLay")', targetObject, function (data) {
                $("#innerContainer").html(data);
            });
        });

    })
</script>
